#ifndef H__GLOBALS__H
#define H__GLOBALS__H

#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#include <string>

//The surfaces
extern SDL_Surface *dot;
extern SDL_Surface *bullet;
extern SDL_Surface *screen;
extern SDL_Surface *startSurf;
extern SDL_Surface *message;

//The event structure
extern SDL_Event event;

//The font
extern TTF_Font *font;

//The color of the font
extern SDL_Color textColor;

SDL_Surface *load_image( std::string filename );

void apply_surface( int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip = NULL );

bool check_collision( SDL_Rect A, SDL_Rect B );

bool init();

void clean_up();

#endif
